
package com.shycloud.mido.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shycloud.mido.basic.api.entity.BasSensitiveWords;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 敏感词表
 *
 * @author yyy
 * @date 2019-02-26 16:32:57
 */
public interface BasSensitiveWordsMapper extends BaseMapper<BasSensitiveWords> {

	/**
	 * 保存敏感词汇
	 * @param list 敏感词汇list
	 *  @return  成功失败
	 */
	boolean saveWords(@Param("list") List<Map<String,Object>> list);

	/**
	 * 查询敏感词是否存在
	 * @param text
	 * @return
	 */
	Integer selByText(@Param("text") String text);

}
